import http from '../request';
import { LoginFromType, UserInfoType } from '@/types/login.ts';
// 登录

export const loginApi = (data: LoginFromType): Promise<UserInfoType> => {
  return http.get('/api/login', data);
};
